package com.woniuxy.carlife.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author fx
 * @ClassName:CouponParam
 * @Description: 新增优惠券的param
 * @date 2021/4/13 0:51
 **/

@Data
@ApiModel(value = "新增优惠券的param")
public class CouponParam {

    @NotNull(message="优惠券名称不能为空")
    @ApiModelProperty(value = "优惠券名称", required = true, dataType = "String")
    private String couponName;

    @NotNull(message="优惠券类别id不能为空")
    @ApiModelProperty(value = "优惠券类别id", required = true, dataType = "Integer")
    private Integer couponCategoryId;

    @NotNull(message="优惠券分类不能为空")
    @ApiModelProperty(value = "优惠券分类(满减券/无门槛券等)", required = true, dataType = "String")
    private String couponCategoryName;

    @ApiModelProperty(value = "满减优惠券额度(最低优惠的消费标准，默认为0)", required = true, dataType = "BigDecimal")
    private BigDecimal couponQuota;

    @NotNull(message="优惠金额不能为空")
    @ApiModelProperty(value = "优惠金额", required = true, dataType = "BigDecimal")
    private BigDecimal couponPreferentialAmount;

    @NotNull(message="优惠券有效期不能为空")
    @ApiModelProperty(value = "优惠券有效期(按天数算)，领优惠券的时候开始计算过期时间", required = true, dataType = "Integer")
    private Integer couponExpireTime;

    @NotNull(message="优惠券数量不能为空")
    @ApiModelProperty(value = "优惠券数量", required = true, dataType = "Integer")
    private Integer couponNumber;
}
